package cn.iocoder.an.module.business.dal.dataobject.auditplanarea;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.*;

import java.time.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.an.framework.mybatis.core.dataobject.BaseDO;


/**
 * 审核计划区域 DO
 *
 * @author 超级管理员
 */
@TableName(value = "business_audit_plan_area",autoResultMap = true)
@KeySequence("business_audit_plan_area_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuditPlanAreaDO extends BaseDO {

    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 等级
     */
    private Long levelId;
    /**
     * 计划
     */
    private Long planId;
    /**
     * 区域
     */
    private Long areaId;
    /**
     * 审核开始日期
     */
    private LocalDate auditStartDate;
    /**
     * 审核结束日期
     */
    private LocalDate auditEndDate;
    /**
     * 审核人
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Long> auditUserId;
    /**
     * 状态 1新建 2已下发
     */
    private Integer status;

    //1.未填报 2已填报
    private Integer writeStatus;


    //区域名称
    private String areaName;

    //重要工序
    private String importantProcesses;

    //最近问题
    private String recentlyProblem;

    //下发人
    private  Long sendUserId;
    private String sendUserName;

    //填报时间
    private LocalDateTime writeTime;

    //下发时间
    private LocalDateTime sendTime;

    //填报人
    private Long writeUserId;
    private String writeUserName;

    //审核人
    private String auditUserName;


}